﻿/*-----------------------------------------------
// File: OnceBehaviourPackage.cs
// Description: 行为包
// Author: Shaobing	492057342@qq.com
-----------------------------------------------*/
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

namespace Battle.View
{
    public class UltimateBehaviourPackage {
        public string actorUid;
        public List<string> targetUids = new List<string>();
        public UltimateBehaviourPackage(string uid, List<string> _targetUids) {
            this.actorUid = uid;
            this.targetUids = _targetUids;
        } 
    }
    public class OnceBehaviourPackage 
    {
        public string actorUid;
        public SkillType skillType;
        public int FPId;
        public BattleCamp FPIdCamp;
        public bool isNeedMove;
        public OnceBehaviourPackage(string uid, SkillType t, int fpid, BattleCamp fpcamp, int needMove) {
            actorUid = uid;
            skillType = t;
            FPId = fpid;
            FPIdCamp = fpcamp; 
            isNeedMove = needMove == 0 ? false : true;
        }
        public SkillCastSelectPointRule currentSelectRule {
            get {
                var bc = BattleViewCtrl.GetInstance().GetBattleCharacter(actorUid);
                var skill = bc.GetSkill(skillType);
                if (skill != null)
                {
                    return skill.selectRule;
                }
                return SkillCastSelectPointRule.None;
            }
        }
    }
}
